import pygame


class GameMusic:
    @classmethod
    def bg_music_play(cls, music_name):
        pygame.mixer.music.load(music_name)
        pygame.mixer.music.play(-1)
        return pygame.mixer

    @classmethod
    def sound_effect_play(cls, music_name):
        pygame.mixer.Sound(music_name).play()
        return pygame.mixer

    @classmethod
    def music_stop(cls):
        pygame.mixer.music.stop()
        return pygame.mixer
